package com.mew.common.dc.mapper;


import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mew.common.entity.user.Profile;
import com.mew.common.entity.user.User;
import com.mew.common.vo.web.GoldInfoVo;
import com.mew.common.vo.web.UserGoldVO;
import com.mew.common.vo.web.UserTypeGoldTotalVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@DS("mew_core")
public interface ProfileMapper extends BaseMapper<Profile> {
    Integer updateByAuto(Profile entity);

    GoldInfoVo getGoldInfo(@Param("userId") long userId);

    List<UserTypeGoldTotalVo> userTypeGoldTotal();

    List<UserGoldVO> getUserGoldList();

    int insertBatch(@Param("list") List<Profile> list);

}
